package edu.njucm.herbiv.utils;

import java.io.File;

/**
 * @Author ZhouHang
 * @Date 24/4/25 025
 */
public class ScriptUtils {
    public static final String HERBIV_HOME = System.getenv("HERBIV_HOME");
    public static final String runPath = HERBIV_HOME + File.separator + "run.py";

    /**
     * 不同系统使用不同 python 命令执行
     * */
    public static String pyCommand() {
        if (System.getProperty("os.name").startsWith("Windows")) {
            return "python";
        } else {
            return "python3";
        }
    }

}
